#!/usr/bin/env bash
cd `dirname $0`
pwd

if [[ $1 = "start" ]]; then
    echo "开始启动程序"
    nohup npm start &
elif  [[ $1 = "stop" ]]; then
    echo "开始关闭程序"
    kill -9 $(lsof -i:3000  |awk 'NR==2{print $2}')
else
    echo "其他"
fi


